<template xmlns:p="http://www.w3.org/1999/xlink">
    <div>
        <div class="content white-block">
            <div>
                <div>
                    <span class="state" name="">处理状态：</span>
                    <el-select v-model="statusVal" placeholder="请选择" class="mr10">
                        <el-option
                            v-for="item in statusOptions"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value">
                        </el-option>
                    </el-select>
                    <span class="state" name="">消费者系统：</span>
                    <el-select v-model="systemName" placeholder="请选择" class="mr10 select">
                        <el-option
                            v-for="item in sysOptions"
                            :key="item.id"
                            :label="item.label"
                            :value="item.systemName">
                        </el-option>
                    </el-select>
                    <el-select v-model="value" placeholder="请选择" class="mr10" @change="typeChange">
                        <el-option
                            v-for="item in options"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value">
                        </el-option>
                    </el-select>
                    <el-input v-model="input" placeholder="请输入内容" class="input" @keyup.enter="query"></el-input>
                </div>
                <div class="toolbar mt10">
                    <div class="provider">
                        <el-date-picker
                            class="mr10 time"
                            v-model="newTime"
                            :unlink-panels="true"
                            type="datetimerange"
                            value-format="yyyy-MM-dd HH:mm:ss"
                            range-separator="~"
                            start-placeholder="开始日期"
                            end-placeholder="结束日期">
                        </el-date-picker>
                        <el-button type="primary" class="mr10" @click="getPage(1)">查询</el-button>
                    </div>
                </div>
                <div class="table atomicTable">
                    <table-example :data="tableData" :tableColumn="header"
                                   @row-click="handleClick"
                                   @cell-mouse-enter="handClick"
                                   v-loading="loading"
                                   class="mt20">
                        <template slot="status" slot-scope="scope">
                            <span v-if="scope.row.status == 0">成功</span>
                            <span v-if="scope.row.status == 1">权限异常</span>
                            <span v-if="scope.row.status == 2">服务异常</span>
                            <span v-if="scope.row.status == 3">其他异常</span>
                            <span v-if="scope.row.status == 4">流控异常</span>
                        </template>
                        <!--                        <template slot="operation" slot-scope="scope">-->
                        <!--                            &lt;!&ndash;                            <el-button :underline="false" @click="logDetails" type="text" size="small"&ndash;&gt;-->
                        <!--                            &lt;!&ndash;                                       class="mr10">详情&ndash;&gt;-->
                        <!--                            &lt;!&ndash;                            </el-button>&ndash;&gt;-->
                        <!--                        </template>-->
                    </table-example>
                    <page :data="page" v-if="page" class="mt30 page" @jumpPage="getPage"></page>
                </div>
            </div>
            <el-drawer
                title=""
                :visible.sync="logDetailsFlag"
                :show-close="false"
                direction="rtl"
                size="70%">
                <el-container>
                    <el-header :height="'auto'">
                        <div class="box-head">
                            <!--                        <breadcrumb :title="'消费者系统'"></breadcrumb>-->
                            <div class="sername">
                                服务名称
                                <span class="close" @click="logClose"><i class="el-icon-close"></i></span>
                            </div>
                            <span class="mt20">{{name}}</span>
                            <div class="detailsMsg bgc">
                                <el-row>
                                    <el-col :span="3">
                                        <span>消费者系统名称：</span>
                                        <p :title="tableMsg.systemName">
                                            {{tableMsg.systemName}}
                                        </p>
                                    </el-col>
                                    <el-col :span="3">
                                        <span>消费者群组名称：</span>
                                        <p :title="tableMsg.groupname">
                                            {{tableMsg.groupname}}
                                        </p>
                                    </el-col>
                                    <el-col :span="2">
                                        <span>消费者IP：</span>
                                        <p>
                                            {{tableMsg.requestip}}
                                        </p>
                                    </el-col>
                                    <el-col :span="4">
                                        <span>服务名称：</span>
                                        <p :title="tableMsg.servname">
                                            {{tableMsg.servname}}
                                        </p>
                                    </el-col>
                                    <el-col :span="2">
                                        <span>处理状态：</span>
                                        <p>
                                            {{tableMsg.status}}
                                        </p>
                                    </el-col>
                                    <el-col :span="4">
                                        <span>请求时间：</span>
                                        <p :title="tableMsg.requestTime">
                                            {{tableMsg.requestTime}}
                                        </p>
                                    </el-col>
                                    <el-col :span="2">
                                        <span>耗时(ms)：</span>
                                        <p>
                                            {{tableMsg.takeTime}}
                                        </p>
                                    </el-col>
                                </el-row>
                            </div>
                        </div>
                    </el-header>
                    <el-main class="tabBox">
                        <div class="white-block">
                            <el-tabs v-model="activeName" class="heightTabs" @tab-click="tabsHandleClick">
                                <el-tab-pane label="服务调用详情" name="first" class="tabsHeight">
                                    <div class="tab-content">
                                        <div class="current provider mapOutMsg">
                                            <breadcrumb :title="'服务调用详情'" class="breadcrumb"></breadcrumb>
                                        </div>
                                        <div class="detailsBox" v-for="item in detailsMsg" :key="item.id">
                                            <div class="detailsMsg1">
                                                <el-row type="flex" class="row-bg" justify="space-between">
                                                    <el-col :span="12" class="sysMsg">
                                                        <div class="grid-content bg-purple">
                                                            <span class="sysTitle">请求流水号：</span>
                                                            <div class="sysContenrt">{{item.reqid}}</div>
                                                        </div>
                                                    </el-col>
                                                    <el-col :span="12" class="sysMsg">
                                                        <div class="grid-content bg-purple">
                                                            <span class="sysTitle">消费者系统名称：</span>
                                                            <div class="sysContenrt">
                                                                {{item.systemName}}
                                                            </div>
                                                        </div>
                                                    </el-col>
                                                </el-row>
                                                <el-row type="flex" class="row-bg" justify="space-between">
                                                    <el-col :span="12" class="sysMsg">
                                                        <div class="grid-content bg-purple">
                                                            <span class="sysTitle">消费者IP：</span>
                                                            <div class="sysContenrt">
                                                                {{item.requestip}}
                                                            </div>
                                                        </div>
                                                    </el-col>
                                                    <el-col :span="12" class="sysMsg">
                                                        <div class="grid-content bg-purple">
                                                            <span class="sysTitle">服务名称：</span>
                                                            <div class="sysContenrt">
                                                                {{item.servname}}
                                                            </div>
                                                        </div>
                                                    </el-col>
                                                </el-row>
                                                <el-row type="flex" class="row-bg" justify="space-between">
                                                    <el-col :span="12" class="sysMsg">
                                                        <div class="grid-content bg-purple">
                                                            <span class="sysTitle">服务编码：</span>
                                                            <div class="sysContenrt">
                                                                {{item.servcode}}
                                                            </div>
                                                        </div>
                                                    </el-col>
                                                    <el-col :span="12" class="sysMsg">
                                                        <div class="grid-content bg-purple">
                                                            <span class="sysTitle">请求时间：</span>
                                                            <div class="sysContenrt">
                                                                {{item.requestTime}}
                                                            </div>
                                                        </div>
                                                    </el-col>
                                                </el-row>
                                                <el-row type="flex" class="row-bg" justify="space-between">
                                                    <el-col :span="12" class="sysMsg">
                                                        <div class="grid-content bg-purple">
                                                            <span class="sysTitle">返回时间：</span>
                                                            <div class="sysContenrt">
                                                                {{item.responseTime}}
                                                            </div>
                                                        </div>
                                                    </el-col>
                                                    <el-col :span="12" class="sysMsg">
                                                        <div class="grid-content bg-purple">
                                                            <span class="sysTitle">耗时(ms)：</span>
                                                            <div class="sysContenrt">
                                                                {{item.takeTime}}
                                                            </div>
                                                        </div>
                                                    </el-col>
                                                </el-row>
                                                <el-row type="flex" class="row-bg" justify="space-between">
                                                    <el-col :span="12" class="sysMsg">
                                                        <div class="grid-content bg-purple">
                                                            <span class="sysTitle">处理状态：</span>
                                                            <div v-if="item.status ==='成功'"
                                                                 class="sysContenrt success">
                                                                {{item.status}}
                                                            </div>
                                                            <div v-else class="sysContenrt error">
                                                                {{item.status}}
                                                            </div>
                                                        </div>
                                                    </el-col>
                                                    <el-col :span="12" class="sysMsg">
                                                        <div class="grid-content bg-purple">
                                                            <span class="sysTitle">服务平台：</span>
                                                            <div class="sysContenrt">
                                                                {{item.appname}}
                                                            </div>
                                                        </div>
                                                    </el-col>
                                                </el-row>
                                                <el-row type="flex" class="row-bg" justify="space-between">
                                                    <el-col :span="12" class="sysMsg">
                                                        <div class="grid-content bg-purple">
                                                            <span class="sysTitle">请求包大小(B)：</span>
                                                            <div class="sysContenrt">
                                                                {{item.reqlength}}
                                                            </div>
                                                        </div>
                                                    </el-col>
                                                    <el-col :span="12" class="sysMsg">
                                                        <div class="grid-content bg-purple">
                                                            <span class="sysTitle">返回包大小(B)：</span>
                                                            <div class="sysContenrt">
                                                                {{item.resplength}}
                                                            </div>
                                                        </div>
                                                    </el-col>
                                                </el-row>
                                            </div>
                                            <div class="serConsumeMsg mt30">
                                                <div class="current provider mapOutMsg">
                                                    <breadcrumb :title="'QueryString(get请求的入参)'"
                                                                class="breadcrumb"></breadcrumb>
                                                </div>
                                                <!-- <div class="requestMsg1">{{item.querystring}}</div> -->
                                                <el-input v-model="item.querystring"
                                                          type="textarea"
                                                          :readOnly="true"
                                                          class="textareaWidth" :rows="2"></el-input>

                                            </div>
                                            <div class="serConsumeMsg mt30">
                                                <div class="current provider mapOutMsg">
                                                    <breadcrumb :title="'请求报文'" class="breadcrumb"></breadcrumb>

                                                </div>
                                                <!-- <div class="requestMsg">{{item.insoapmsg}}</div> -->
                                                <el-input v-model="item.insoapmsg"
                                                          type="textarea"
                                                          :readOnly="true"
                                                          class="textareaWidth" :rows="5"></el-input>

                                            </div>
                                            <div class="serConsumeMsg mt30">
                                                <div class="current provider mapOutMsg">
                                                    <breadcrumb :title="'返回报文'" class="breadcrumb"></breadcrumb>
                                                </div>
                                                <!-- <div class="requestMsg">{{item.outsoapmsg}}</div> -->
                                                <el-input v-model="item.outsoapmsg"
                                                          type="textarea"
                                                          :readOnly="true"
                                                          class="textareaWidth" :rows="5"></el-input>

                                            </div>
                                        </div>
                                    </div>

                                </el-tab-pane>
                                <el-tab-pane label="原子服务调用详情" name="second" class="tabsHeight">
                                    <div class="tab-content">
                                        <div class="current provider mapOutMsg">
                                            <!--                                <span>原子服务信息</span>-->
                                            <breadcrumb :title="'原子服务调用详情'" class="breadcrumb"></breadcrumb>
                                        </div>
                                        <div class="atomicMsg">
                                            <!--                                <table-example :data="atomicData" :tableColumn="atomicDataHeader"-->
                                            <!--                                               class="mt20">-->
                                            <!--                                </table-example>-->
                                            <div class="atomicMsgDetails ml10">
                                                <el-row type="flex" class="row-bg" justify="space-between">
                                                    <el-col :span="12" class="sysMsg">
                                                        <div class="grid-content bg-purple">
                                                            <span class="sysTitle">适配类型：</span>
                                                            <div class="sysContenrt">
                                                                {{this.atomicData.adapterType}}
                                                            </div>
                                                        </div>
                                                    </el-col>
                                                    <el-col :span="12" class="sysMsg">
                                                        <div class="grid-content bg-purple">
                                                            <span class="sysTitle">开始时间：</span>
                                                            <div class="sysContenrt">
                                                                {{this.atomicData.requestTime}}
                                                            </div>
                                                        </div>
                                                    </el-col>
                                                </el-row>
                                                <el-row type="flex" class="row-bg" justify="space-between">
                                                    <el-col :span="12" class="sysMsg">
                                                        <div class="grid-content bg-purple">
                                                            <span class="sysTitle">结束时间：</span>
                                                            <div class="sysContenrt">
                                                                {{this.atomicData.responseTime}}
                                                            </div>
                                                        </div>
                                                    </el-col>
                                                    <el-col :span="12" class="sysMsg">
                                                        <div class="grid-content bg-purple">
                                                            <span class="sysTitle">耗时(ms)：</span>
                                                            <div class="sysContenrt">
                                                                {{this.atomicData.takeTime}}
                                                            </div>
                                                        </div>
                                                    </el-col>
                                                </el-row>
                                                <el-row type="flex" class="row-bg" justify="space-between">
                                                    <el-col :span="12" class="sysMsg">
                                                        <div class="grid-content bg-purple">
                                                            <span class="sysTitle">处理状态：</span>
                                                            <div class="sysContenrt">
                                                                {{this.atomicData.status}}
                                                            </div>
                                                        </div>
                                                    </el-col>
                                                    <el-col :span="12" style="margin-left: .5rem">
                                                        <div class="grid-content bg-purple">
                                                            <span class="sysTitle"></span>
                                                            <span class="sysContenrt"></span>
                                                        </div>
                                                    </el-col>
                                                </el-row>
                                            </div>

                                            <div class="serConsumeMsg mt30">
                                                <div class="current provider mapOutMsg">
                                                    <breadcrumb :title="'请求报文'" class="breadcrumb"></breadcrumb>
                                                </div>
                                                <!-- <div class="requestMsg">{{atomiinscRequest}}</div> -->
                                                <el-input v-model="atomiinscRequest"
                                                          type="textarea"
                                                          :readOnly="true"
                                                          class="textareaWidth" :rows="5"></el-input>
                                            </div>
                                            <div class="serConsumeMsg mt30">
                                                <div class="current provider mapOutMsg">
                                                    <breadcrumb :title="'返回报文'" class="breadcrumb"></breadcrumb>
                                                </div>
                                                <!-- <div class="requestMsg">{{atomioutcRequest}}</div> -->
                                                <el-input v-model="atomioutcRequest"
                                                          type="textarea"
                                                          :readOnly="true"
                                                          class="textareaWidth" :rows="5"></el-input>
                                            </div>
                                        </div>
                                    </div>

                                </el-tab-pane>
                            </el-tabs>
                        </div>
                    </el-main>
                </el-container>
            </el-drawer>
        </div>

        <!--        <transition name="slide">-->
        <!--            <router-view></router-view>-->
        <!--        </transition>-->
    </div>
</template>

<script>
    import dialogMsk from '../../components/dialog'
    import tableExample from '../../components/table'
    import page from '../../components/pagination'
    import breadcrumb from '../../components/breadcrumb'

    export default {
        data() {
            return {
                name: '',
                logDetailsFlag: false,
                oldTime: '',
                time: '',
                newTime: '',
                input: '',
                value: '1',
                options: [
                    {
                        value: '1',
                        label: '服务名称'
                    },
                    {
                        value: '2',
                        label: '请求流水号'
                    },
                    {
                        value: '3',
                        label: '请求报文'
                    }
                ],
                statusVal: '',
                statusOptions: [
                    {
                        value: '',
                        label: '全部'
                    },
                    {
                        value: '0',
                        label: '成功'
                    },
                    {
                        value: '1',
                        label: '权限异常'
                    },
                    {
                        value: '2',
                        label: '服务异常'
                    },
                    {
                        value: '3',
                        label: '其他异常'
                    },
                    {
                        value: '4',
                        label: '流控异常'
                    }
                ], // 处理状态
                systemName: '',
                sysOptions: [
                    {
                        systemName: '',
                        label: '全部'
                    }
                ], // 消费者系统
                tableData: [],
                header: [
                    {
                        prop: 'systemName',
                        label: '消费者系统名称',
                        minWidth: 150,
                        align: 'left',
                        headerAlign: 'left',
                        tooltip: true
                    },
                    {
                        prop: 'groupname',
                        label: '消费者群组名称',
                        minWidth: 150,
                        align: 'left',
                        headerAlign: 'left',
                        tooltip: true
                    },
                    {
                        prop: 'requestip',
                        label: '消费者IP',
                        minWidth: 100,
                        align: 'left',
                        headerAlign: 'left',
                        tooltip: true
                    },
                    {
                        prop: 'servname',
                        label: '服务名称',
                        minWidth: 150,
                        align: 'left',
                        headerAlign: 'left',
                        tooltip: true
                    },
                    {
                        prop: 'status',
                        label: '处理状态',
                        minWidth: 100,
                        align: 'center',
                        headerAlign: 'center'
                    },
                    {
                        prop: 'requestTime',
                        label: '请求时间',
                        minWidth: 150,
                        align: 'left',
                        headerAlign: 'left',
                        tooltip: true
                    },
                    {
                        prop: 'takeTime',
                        label: '耗时(ms)',
                        minWidth: 100,
                        align: 'center',
                        headerAlign: 'center'
                    }
                    // {
                    //     prop: 'operation',
                    //     label: '操作',
                    //     minWidth: 80,
                    //     align: 'center',
                    //     headerAlign: 'center'
                    // }
                ],
                // slotColumns: ['operation'],
                atomicData: {}, // 原子服务调用详情表格
                atomicDataHeader: [
                    {
                        prop: 'adapterType',
                        label: '适配类型',
                        minWidth: '10%',
                        align: 'center'
                    },
                    {
                        prop: 'requestTime',
                        label: '开始时间',
                        minWidth: '15%',
                        align: 'center'
                    },
                    {
                        prop: 'responseTime',
                        label: '结束时间',
                        minWidth: '15%',
                        align: 'center'
                    },
                    {
                        prop: 'takeTime',
                        label: '耗时(ms)',
                        minWidth: '10%',
                        align: 'center'
                    },
                    {
                        prop: 'status',
                        label: '处理状态',
                        minWidth: '10%',
                        align: 'center'
                    }
                ],
                atomicRequest: [], // 原子服务调用详情第二表格
                atomicReqHeader: [
                    {
                        prop: 'atomserviceName',
                        label: '原子服务名',
                        minWidth: '15%',
                        align: 'center'
                    },
                    {
                        prop: 'insoapmsg',
                        label: '请求报文',
                        minWidth: '15%',
                        align: 'center'
                    },
                    {
                        prop: 'outsoapmsg',
                        label: '返回报文',
                        minWidth: '15%',
                        align: 'center'
                    }
                ],
                page: null,
                index: 1,
                content: true,
                details: false, // 详情
                serConsumeTable: [],
                serConsumeHeader: [
                    {
                        prop: 'id',
                        label: '序号',
                        minWidth: '8%',
                        align: 'center'
                    },
                    {
                        prop: 'consumeSys',
                        label: '消费系统',
                        minWidth: '15%',
                        align: 'center'
                    },
                    {
                        prop: 'groupName',
                        label: '群组名称',
                        minWidth: '15%',
                        align: 'center'
                    },
                    {
                        prop: 'ip',
                        label: 'IP',
                        minWidth: '15%',
                        align: 'center'
                    }
                ],
                serverDetails: true,
                atomicSer: false,
                btn: 'primary', // 按钮颜色切换
                btn1: '',
                queryMsg: {},
                id: '',
                detailsMsg: {},
                reqid: '',
                activeName: 'first',
                atomiinscRequest: null, // 原子服务调用详情第二表格
                atomioutcRequest: null,
                headerMsg: [
                    {
                        prop: 'systemName',
                        label: '消费者系统名称',
                        minWidth: 150,
                        align: 'left',
                        headerAlign: 'left',
                        tooltip: true
                    },
                    {
                        prop: 'groupname',
                        label: '消费者群组名称',
                        minWidth: 150,
                        align: 'left',
                        headerAlign: 'left',
                        tooltip: true
                    },
                    {
                        prop: 'requestip',
                        label: '消费者IP',
                        minWidth: 100,
                        align: 'left',
                        headerAlign: 'left',
                        tooltip: true
                    },
                    {
                        prop: 'servname',
                        label: '服务名称',
                        minWidth: 150,
                        align: 'left',
                        headerAlign: 'left',
                        tooltip: true
                    },
                    {
                        prop: 'status',
                        label: '处理状态',
                        minWidth: 60,
                        align: 'center',
                        headerAlign: 'center'
                    },
                    {
                        prop: 'requestTime',
                        label: '请求时间',
                        minWidth: 150,
                        align: 'left',
                        headerAlign: 'left',
                        tooltip: true
                    },
                    {
                        prop: 'takeTime',
                        label: '耗时(ms)',
                        minWidth: 60,
                        align: 'center',
                        headerAlign: 'center'
                    }
                ],
                tableMsg: [],
                loading: false
            }
        },
        created() {
            let lett = this
            document.onkeydown = function (e) {
                let key = window.event.keyCode
                if (key === 13) {
                    lett.getPage(1)
                }
            }
        },
        mounted() {
            this.getData()
            this.getdatatime()
            this.getSelect()
        },
        methods: {
            getdatatime() {
                const start = this.$filter.timeFormat(new Date() - 600000, 'YYYY-MM-DD HH:mm:ss'),
                    end = this.$filter.timeFormat(new Date(), 'YYYY-MM-DD HH:mm:ss')
                this.newTime = [start, end]

            },
            // 分页
            getPage(index) {
                this.loading = true
                if (index) this.index = index
                this.$http.post('/EsbLog/selectAll', {
                    current: Number(this.index) || 1,
                    size: 10,
                    message: this.input,
                    requestTimeBegin: this.newTime[0],
                    requestTimeEnd: this.newTime[1],
                    status: this.statusVal,
                    type: this.value,
                    systemName: this.systemName
                }).then(result => {
                    if (result.success) {
                        this.loading = false
                        this.tableData = result.data.records
                        this.page = result.data
                        delete this.page['records']
                    }
                })
            },
            query() {
                if (this.newTime === '') {
                    this.$message({
                        type: 'info',
                        message: '请输入时间!'
                    })
                } else {
                    this.$http.post('/EsbLog/selectAll', {
                        requestTimeBegin: this.newTime[0],
                        requestTimeEnd: this.newTime[1],
                        type: this.value,
                        message: this.input,
                        status: this.statusVal,
                        systemName: this.systemName || '',
                        current: this.index || 1,
                        size: 10
                    }).then(result => {
                        if (result.success) {
                            this.tableData = result.data.records
                            this.page = result.data
                            delete this.page['records']
                        }
                    })
                }

            },

            getData() {
                this.oldTime = this.$filter.timeFormat(new Date() - 600000, 'YYYY-MM-DD hh:mm:ss')
                this.time = this.$filter.timeFormat(new Date(), 'YYYY-MM-DD hh:mm:ss')

                this.$http.post('/EsbLog/selectAll', {
                    current: this.index || 1,
                    size: 10,
                    message: this.input,
                    requestTimeBegin: this.oldTime,
                    requestTimeEnd: this.time,
                    status: this.statusVal,
                    type: this.value,
                    systemName: this.systemName
                }).then(result => {
                    if (result.success) {
                        this.tableData = result.data.records
                        // this.queryPage = result.data
                        // delete this.queryPage['records']
                    }
                })
            },

            // 查询所有服务消费者
            getSelect() {
                this.$http.get('/EsbConsumerSystem/selectAllSystem').then(result => {
                    if (result.data) {
                        for (let i = 0; i < result.data.length; i++) {
                            this.sysOptions.push(result.data[i])
                        }
                    }
                })
            },

            // 表格点击事件
            handleClick(row) {
                this.tableMsg = []
                this.tableMsg = row
                this.activeName = 'first'
                // console.log(this.tableMsg)
                this.$nextTick(() => {
                    this.id = row.id
                    this.reqid = row.reqid
                    this.name = row.servname
                })
                this.logDetailsFlag = true
                this.$http.get('/EsbLogReq/selectDetailedMsg', {
                    id: this.id
                }).then(result => {
                    if (result.success) {
                        this.detailsMsg = result.data
                    }
                })
            },
            // tab点击事件
            tabsHandleClick(tab, event) {
                if (tab.name === 'second') {
                    this.$http.get('/EsbAtomlogReq/selectDetailedMsg', {
                        reqid: this.reqid
                    }).then(result => {
                        if (result.success) {
                            if (result.data[0]) {
                                this.atomicData = result.data[0]
                                this.atomiinscRequest = result.data[0].insoapmsg
                                this.atomioutcRequest = result.data[0].outsoapmsg
                            } else {
                                this.atomicData = {}
                                this.atomiinscRequest = ''
                                this.atomioutcRequest = ''
                            }
                        }
                    })
                } else {
                    this.$http.get('/EsbLogReq/selectDetailedMsg', {
                        id: this.id
                    }).then(result => {
                        if (result.success) {
                            this.detailsMsg = result.data
                        }
                    })
                }
            },
            handleClick1(row) {
                // console.log(row)
            },

            // 表格鼠标移入事件
            handClick(row) {
                this.$nextTick(() => {
                    this.id = row.id
                    this.reqid = row.reqid
                })
            },

            // 关闭弹框
            logClose() {
                this.logDetailsFlag = false
                this.activeName = 'first'
            },

            // 表格点击高亮
            tabCurrentChangeDetails(currentRowDetails, oldCurrentRowDetails) {
                this.currentRowDetails = currentRowDetails
            },
            tabCurrentChangeModify(currentRowModify, oldCurrentRowModify) {
                this.currentRowModify = currentRowModify
            },
            tabCurrentChangeQuery(currentRowQuery, oldCurrentRowQuery) {
                this.currentRowQuery = currentRowQuery
            },
            typeChange() {
                this.input = ''
            }
        },
        components: {
            dialogMsk,
            tableExample,
            page,
            breadcrumb
        }
    }
</script>
<style scoped lang="less">
    .atomicMsg {
        padding-bottom: .2rem;
    }

    .serviceContent {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        vertical-align: middle;
        cursor: pointer;
        display: inline-block;
        width: 3rem;
    }

    .state {
        font-size: .16rem;
    }

    // 修改时间日期选择器的样式
    .el-date-editor {
        position: relative;
        padding-left: .25rem;

        & /deep/ .el-icon-time {
            position: absolute;
            top: 0;
            right: .1rem;

            &::before {
                content: '\E78E';
            }
        }

        & /deep/ .el-range-input {
            width: 42%;
        }

        & /deep/ .el-range__close-icon {
            display: none;
        }
    }

    .tab-content {
        margin-left: .2rem;
    }

    .breadcrumb {
        height: 0.15rem;
        margin-top: 0.4rem;
        margin-bottom: 0.2rem;
        padding-left: 0.1rem;
        border-left: 2px solid #5586FB;
    }

    .detailsMsg {
        padding: 0.2rem 0 .1rem 0;
        font-size: 0.14rem;

        span {
            width: 2rem;
            color: #999;
            display: inline-block;
            font-size: .14rem;
        }

        p {
            width: 95%;
            display: inline-block;
            line-height: .3rem;
            color: #333;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
        }
    }

    .close {
        float: right;
        font-size: .3rem;
        cursor: pointer;
    }

    .sername {
        /*float: left;*/
        /*display: block;*/
        font-size: .14rem;
        color: #999;
        margin-bottom: .1rem;
    }

    .box-head {
        padding: 0.2rem 0.2rem 0 0.2rem;
        background-color: #F1F5FD;

        .sername {
            line-height: .3rem;
        }
    }

    .atomicMsgDetails {
        /*margin-left: .3rem;*/
        font-size: .16rem;
        margin-top: .3rem;
    }

    .sysMsg {
        min-height: .4rem;
        /*line-height: .4rem;*/
        border-bottom: .01rem solid #E1E1E1;
        margin-bottom: .3rem;
        margin-right: .5rem;

        .sysTitle {
            display: inline-block;
            /*float: left;*/
            color: #999;
            margin-right: .2rem;
            /*width: 1.3rem;*/
            vertical-align: top;
        }

        .sysContenrt {
            /*float: left;*/
            width: 3rem;
            overflow-wrap: break-word;
            display: inline-block;
            vertical-align: text-top;
        }
    }

    .mapOutMsg {
        font-size: .16rem;
        margin-top: .1rem;
        margin-bottom: .2rem;

        span {
            /*float: left;*/
            margin-left: .2rem;
            margin-bottom: .2rem;
            position: relative;
        }

        span::before {
            content: "";
            position: absolute;
            left: -0.1rem;
            top: .01rem;
            width: 0.02rem;
            height: 0.15rem;
            background-color: #5586FB;
        }

        .el-link {
            font-size: .16rem;
            margin-right: .3rem;
        }
    }

    .content {
        width: 100%;

        .provider {
            .time {
                height: .4rem;
                width: 5rem;
            }
        }
    }

    .serConsumeMsg {
        .requestMsg {
            width: 90%;
            height: 1.5rem;
            font-size: .16rem;
            border: 1px solid #E5E5E5;
            background-color: #F8F8F8;
            padding: .1rem;
            word-wrap: break-word;
            word-break: break-all;
            overflow-y: auto;
            overflow-x: hidden;
            margin-left: .1rem;
        }

        .requestMsg1 {
            width: 90%;
            height: .5rem;
            font-size: .16rem;
            border: 1px solid #E5E5E5;
            background-color: #F8F8F8;
            padding: .1rem;
            margin-left: .1rem;
        }
    }

    .detailsBox {
        height: 100%;
        padding-bottom: .2rem;
        margin-top: .3rem;
        /*overflow-y: auto;*/
        /*background-color: pink;*/

        .serAllocation {
            /*margin-top: .2rem;*/
        }

        .btn {
            margin-right: 1rem;
        }

        .detailsMsg1 {
            font-size: .16rem;
            margin-left: .1rem;

            .grid-content {
                span {
                    /*display: inline-block;*/
                    margin-right: .2rem;
                    /*width: 1.4rem;*/
                }
            }

            p {
                display: inline-block;
                line-height: .5rem;
            }

            .success {
                color: #00B019;
            }

            .error {
                color: red;
            }
        }

        .deployBox {
            width: 100%;

            li {
                background-color: #eee;
                display: inline-block;
                height: 3rem;
                width: 25%;
                margin-right: .3rem;
                margin-bottom: .3rem;
                margin-left: .5rem;
                text-align: center;

                .img {
                    width: 1rem;
                    height: 1.15rem;
                    background-color: pink;
                    margin-left: 37%;
                    margin-top: .5rem;
                }

                span {
                    display: inline-block;
                    margin-top: .3rem;
                }
            }
        }
    }

    .details {
        width: 100%;
        position: relative;

        .icon {
            i {
                font-size: .3rem;
                position: absolute;
                right: -10px;
                top: -10px;
                color: #999;
            }
        }
    }

    .tabBox {
        > .white-block {
            padding: 0;
        }

        > * {
            height: 100%;
        }

        .heightTabs {
            height: 100%;
        }

        .tabsHeight {
            height: 100%;
            padding-right: 0.5rem;
            overflow-y: auto;
            overflow-x: hidden;

            .textareaWidth {
                width: 100%;
            }
        }
    }

    .input {
        width: 2.2rem;
    }
</style>
